﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SheetLib.Matan.Blocks
{
    public class F2Block : SheetLib.Matan.Block
    {
        public enum BlockType
        {
            Multiplication = 0,
            Division
        }

        //
        // Параметры блока:
        // 1. A             : float
        // 2. B             : float
        // 3. C             : float
        // 4. BlockType     : F2Block.BlockType
        // 

        public F2Block()
            : base()
        {
            parameters["A"] = 1.0f;
            parameters["B"] = 1.0f;
            parameters["C"] = 0.0f;
            parameters["BlockType"] = BlockType.Multiplication;
        }

        public override string GetBlockType()
        {
            return "F2";
        }

        public override int GetPower()
        {
            return -2;
        }

        protected override void FillAB()
        {
            a[0] = a[2] = b[2] = 0;
        }

                
    }
}
